]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Add preview to color picker
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 30 Jul 2018 16:31:17 +0000 (18:31 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 22 May 2020 14:10:43 +0000 (16:10 +0200)
commitf06223df4849c9ed6480c4a07bc9fc9727954458
tree7343188f83cceba29d4aa8044204347ad2d3b618
parent9a8ced9f5b6fcbbf81ecd0f639d01a3b122efa09
screenshot: Add preview to color picker

With color picking implemented in the compositor, we
can do better than letting the user pick a pixel with
the crosshair cursor, and present them with a preview
of the color that will be selected.

Do this by replacing the cursor with a custom icon and
apply a recoloring effect, where we replace a given color
with the color of the currently hovered pixel (similar
to a green screen).

https://gitlab.gnome.org/GNOME/gnome-shell/issues/451
data/gnome-shell-theme.gresource.xml
data/theme/color-pick.svg [new file with mode: 0644]
js/ui/screenshot.js